/*
 * @Description: 没有数据显示
 * @Author: Yong
 * @Date: 2021-09-26 19:37:27
 * @LastEditTime: 2021-09-27 20:26:25
 */
import React from 'react'

import PropTypes from 'prop-types'

import { BASE_URL } from '../../utils/url'
import styles from './index.module.css'

const NoHouse = ({ children }) => (
	<div className={styles.root}>
		<img
			className={styles.img}
			src={BASE_URL + '/img/not-found.png'}
			alt="暂无数据"
		/>
		<p className={styles.msg}>{children}</p>
	</div>
)

NoHouse.propTypes = {
	children: PropTypes.node.isRequired
}

export default NoHouse
